package com.rc.saas.tenant.mapper.member;

import com.rc.saas.tenant.common.base.BaseMapper;
import com.rc.saas.tenant.model.member.MemberAccount;
import com.rc.saas.tenant.model.member.MemberAccountExample;
import com.rc.saas.tenant.search.member.MemberAccountSearch;
import com.rc.saas.tenant.vo.member.MemberAccountResult;
import com.rc.saas.tenant.vo.member.MemberRechargeVo;

import java.util.List;

public interface MemberAccountMapper extends BaseMapper<Long, MemberAccount, MemberAccountExample> {
    //Long insertReturnId(MemberAccount memberAccount);

    void updateMemberAccountByMigrateId(MemberAccount memberAccount);

    /**
     * 先更新余额，然后取最新余额存储在MemberAccount.account返回
     */
    int updateMemberAccountByMemberId(MemberRechargeVo memberRecharge);

    List<MemberAccountResult> searchByCondition(MemberAccountSearch memberAccountSearch);

}
